package generics_and_collections.stack;

import generics_and_collections.equals.Person;

/**
 * Created by Sam on 08/02/14.
 */
public class StackTest {

    public StackTest(){

    }

    public void execute() {
        IStack stack = new MyStack();

        Person p1 = new Person("sam", 32, true);
        Person p2 = new Person("bruno", 18, true);
        Person p3 = new Person("jack", 32, true);

        stack.push(p1);
        stack.push(p2);
        stack.push(p3);
        stack.pop();
        stack.pop();

        //System.out.println(stack.size());
        System.out.println(stack.toString());
    }
}
